package com.hjm.java.entity;

import com.alibaba.fastjson.annotation.JSONField;

import com.hjm.java.utils.MD5Util;
public class UserLogin {
    private String loginName;
    private String passwordMd5;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPasswordMd5() {
        return MD5Util.MD5Encode(passwordMd5, "UTF-8");
    }

    public void setPasswordMd5(String password) {
        this.passwordMd5 = password;
    }
    @JSONField(serialize=false)
    public String getPassword() {
        return passwordMd5;
    }

    public UserLogin(String loginName, String password) {
        this.loginName = loginName;
        this.passwordMd5 = password;
    }

    public UserLogin() {
    }
}
